package com.egdk.api.entity;

import java.util.ArrayList;
import java.util.List;

public class MedicalCaptureExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MedicalCaptureExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andActionIsNull() {
            addCriterion("action is null");
            return (Criteria) this;
        }

        public Criteria andActionIsNotNull() {
            addCriterion("action is not null");
            return (Criteria) this;
        }

        public Criteria andActionEqualTo(String value) {
            addCriterion("action =", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionNotEqualTo(String value) {
            addCriterion("action <>", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionGreaterThan(String value) {
            addCriterion("action >", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionGreaterThanOrEqualTo(String value) {
            addCriterion("action >=", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionLessThan(String value) {
            addCriterion("action <", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionLessThanOrEqualTo(String value) {
            addCriterion("action <=", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionLike(String value) {
            addCriterion("action like", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionNotLike(String value) {
            addCriterion("action not like", value, "action");
            return (Criteria) this;
        }

        public Criteria andActionIn(List<String> values) {
            addCriterion("action in", values, "action");
            return (Criteria) this;
        }

        public Criteria andActionNotIn(List<String> values) {
            addCriterion("action not in", values, "action");
            return (Criteria) this;
        }

        public Criteria andActionBetween(String value1, String value2) {
            addCriterion("action between", value1, value2, "action");
            return (Criteria) this;
        }

        public Criteria andActionNotBetween(String value1, String value2) {
            addCriterion("action not between", value1, value2, "action");
            return (Criteria) this;
        }

        public Criteria andFormatIsNull() {
            addCriterion("Format is null");
            return (Criteria) this;
        }

        public Criteria andFormatIsNotNull() {
            addCriterion("Format is not null");
            return (Criteria) this;
        }

        public Criteria andFormatEqualTo(String value) {
            addCriterion("Format =", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotEqualTo(String value) {
            addCriterion("Format <>", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatGreaterThan(String value) {
            addCriterion("Format >", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatGreaterThanOrEqualTo(String value) {
            addCriterion("Format >=", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatLessThan(String value) {
            addCriterion("Format <", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatLessThanOrEqualTo(String value) {
            addCriterion("Format <=", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatLike(String value) {
            addCriterion("Format like", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotLike(String value) {
            addCriterion("Format not like", value, "format");
            return (Criteria) this;
        }

        public Criteria andFormatIn(List<String> values) {
            addCriterion("Format in", values, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotIn(List<String> values) {
            addCriterion("Format not in", values, "format");
            return (Criteria) this;
        }

        public Criteria andFormatBetween(String value1, String value2) {
            addCriterion("Format between", value1, value2, "format");
            return (Criteria) this;
        }

        public Criteria andFormatNotBetween(String value1, String value2) {
            addCriterion("Format not between", value1, value2, "format");
            return (Criteria) this;
        }

        public Criteria andPatientnameIsNull() {
            addCriterion("PatientName is null");
            return (Criteria) this;
        }

        public Criteria andPatientnameIsNotNull() {
            addCriterion("PatientName is not null");
            return (Criteria) this;
        }

        public Criteria andPatientnameEqualTo(String value) {
            addCriterion("PatientName =", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotEqualTo(String value) {
            addCriterion("PatientName <>", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameGreaterThan(String value) {
            addCriterion("PatientName >", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameGreaterThanOrEqualTo(String value) {
            addCriterion("PatientName >=", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameLessThan(String value) {
            addCriterion("PatientName <", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameLessThanOrEqualTo(String value) {
            addCriterion("PatientName <=", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameLike(String value) {
            addCriterion("PatientName like", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotLike(String value) {
            addCriterion("PatientName not like", value, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameIn(List<String> values) {
            addCriterion("PatientName in", values, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotIn(List<String> values) {
            addCriterion("PatientName not in", values, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameBetween(String value1, String value2) {
            addCriterion("PatientName between", value1, value2, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientnameNotBetween(String value1, String value2) {
            addCriterion("PatientName not between", value1, value2, "patientname");
            return (Criteria) this;
        }

        public Criteria andPatientidIsNull() {
            addCriterion("PatientID is null");
            return (Criteria) this;
        }

        public Criteria andPatientidIsNotNull() {
            addCriterion("PatientID is not null");
            return (Criteria) this;
        }

        public Criteria andPatientidEqualTo(String value) {
            addCriterion("PatientID =", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotEqualTo(String value) {
            addCriterion("PatientID <>", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidGreaterThan(String value) {
            addCriterion("PatientID >", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidGreaterThanOrEqualTo(String value) {
            addCriterion("PatientID >=", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLessThan(String value) {
            addCriterion("PatientID <", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLessThanOrEqualTo(String value) {
            addCriterion("PatientID <=", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidLike(String value) {
            addCriterion("PatientID like", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotLike(String value) {
            addCriterion("PatientID not like", value, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidIn(List<String> values) {
            addCriterion("PatientID in", values, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotIn(List<String> values) {
            addCriterion("PatientID not in", values, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidBetween(String value1, String value2) {
            addCriterion("PatientID between", value1, value2, "patientid");
            return (Criteria) this;
        }

        public Criteria andPatientidNotBetween(String value1, String value2) {
            addCriterion("PatientID not between", value1, value2, "patientid");
            return (Criteria) this;
        }

        public Criteria andStudydateIsNull() {
            addCriterion("StudyDate is null");
            return (Criteria) this;
        }

        public Criteria andStudydateIsNotNull() {
            addCriterion("StudyDate is not null");
            return (Criteria) this;
        }

        public Criteria andStudydateEqualTo(String value) {
            addCriterion("StudyDate =", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotEqualTo(String value) {
            addCriterion("StudyDate <>", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateGreaterThan(String value) {
            addCriterion("StudyDate >", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateGreaterThanOrEqualTo(String value) {
            addCriterion("StudyDate >=", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateLessThan(String value) {
            addCriterion("StudyDate <", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateLessThanOrEqualTo(String value) {
            addCriterion("StudyDate <=", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateLike(String value) {
            addCriterion("StudyDate like", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotLike(String value) {
            addCriterion("StudyDate not like", value, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateIn(List<String> values) {
            addCriterion("StudyDate in", values, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotIn(List<String> values) {
            addCriterion("StudyDate not in", values, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateBetween(String value1, String value2) {
            addCriterion("StudyDate between", value1, value2, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudydateNotBetween(String value1, String value2) {
            addCriterion("StudyDate not between", value1, value2, "studydate");
            return (Criteria) this;
        }

        public Criteria andStudyinstaIsNull() {
            addCriterion("StudyInsta is null");
            return (Criteria) this;
        }

        public Criteria andStudyinstaIsNotNull() {
            addCriterion("StudyInsta is not null");
            return (Criteria) this;
        }

        public Criteria andStudyinstaEqualTo(String value) {
            addCriterion("StudyInsta =", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotEqualTo(String value) {
            addCriterion("StudyInsta <>", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaGreaterThan(String value) {
            addCriterion("StudyInsta >", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaGreaterThanOrEqualTo(String value) {
            addCriterion("StudyInsta >=", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaLessThan(String value) {
            addCriterion("StudyInsta <", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaLessThanOrEqualTo(String value) {
            addCriterion("StudyInsta <=", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaLike(String value) {
            addCriterion("StudyInsta like", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotLike(String value) {
            addCriterion("StudyInsta not like", value, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaIn(List<String> values) {
            addCriterion("StudyInsta in", values, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotIn(List<String> values) {
            addCriterion("StudyInsta not in", values, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaBetween(String value1, String value2) {
            addCriterion("StudyInsta between", value1, value2, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andStudyinstaNotBetween(String value1, String value2) {
            addCriterion("StudyInsta not between", value1, value2, "studyinsta");
            return (Criteria) this;
        }

        public Criteria andPositionIsNull() {
            addCriterion("Position is null");
            return (Criteria) this;
        }

        public Criteria andPositionIsNotNull() {
            addCriterion("Position is not null");
            return (Criteria) this;
        }

        public Criteria andPositionEqualTo(String value) {
            addCriterion("Position =", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotEqualTo(String value) {
            addCriterion("Position <>", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionGreaterThan(String value) {
            addCriterion("Position >", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionGreaterThanOrEqualTo(String value) {
            addCriterion("Position >=", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionLessThan(String value) {
            addCriterion("Position <", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionLessThanOrEqualTo(String value) {
            addCriterion("Position <=", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionLike(String value) {
            addCriterion("Position like", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotLike(String value) {
            addCriterion("Position not like", value, "position");
            return (Criteria) this;
        }

        public Criteria andPositionIn(List<String> values) {
            addCriterion("Position in", values, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotIn(List<String> values) {
            addCriterion("Position not in", values, "position");
            return (Criteria) this;
        }

        public Criteria andPositionBetween(String value1, String value2) {
            addCriterion("Position between", value1, value2, "position");
            return (Criteria) this;
        }

        public Criteria andPositionNotBetween(String value1, String value2) {
            addCriterion("Position not between", value1, value2, "position");
            return (Criteria) this;
        }

        public Criteria andPicfileIsNull() {
            addCriterion("picFile is null");
            return (Criteria) this;
        }

        public Criteria andPicfileIsNotNull() {
            addCriterion("picFile is not null");
            return (Criteria) this;
        }

        public Criteria andPicfileEqualTo(String value) {
            addCriterion("picFile =", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileNotEqualTo(String value) {
            addCriterion("picFile <>", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileGreaterThan(String value) {
            addCriterion("picFile >", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileGreaterThanOrEqualTo(String value) {
            addCriterion("picFile >=", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileLessThan(String value) {
            addCriterion("picFile <", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileLessThanOrEqualTo(String value) {
            addCriterion("picFile <=", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileLike(String value) {
            addCriterion("picFile like", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileNotLike(String value) {
            addCriterion("picFile not like", value, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileIn(List<String> values) {
            addCriterion("picFile in", values, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileNotIn(List<String> values) {
            addCriterion("picFile not in", values, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileBetween(String value1, String value2) {
            addCriterion("picFile between", value1, value2, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicfileNotBetween(String value1, String value2) {
            addCriterion("picFile not between", value1, value2, "picfile");
            return (Criteria) this;
        }

        public Criteria andPicstrIsNull() {
            addCriterion("picStr is null");
            return (Criteria) this;
        }

        public Criteria andPicstrIsNotNull() {
            addCriterion("picStr is not null");
            return (Criteria) this;
        }

        public Criteria andPicstrEqualTo(String value) {
            addCriterion("picStr =", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrNotEqualTo(String value) {
            addCriterion("picStr <>", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrGreaterThan(String value) {
            addCriterion("picStr >", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrGreaterThanOrEqualTo(String value) {
            addCriterion("picStr >=", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrLessThan(String value) {
            addCriterion("picStr <", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrLessThanOrEqualTo(String value) {
            addCriterion("picStr <=", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrLike(String value) {
            addCriterion("picStr like", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrNotLike(String value) {
            addCriterion("picStr not like", value, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrIn(List<String> values) {
            addCriterion("picStr in", values, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrNotIn(List<String> values) {
            addCriterion("picStr not in", values, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrBetween(String value1, String value2) {
            addCriterion("picStr between", value1, value2, "picstr");
            return (Criteria) this;
        }

        public Criteria andPicstrNotBetween(String value1, String value2) {
            addCriterion("picStr not between", value1, value2, "picstr");
            return (Criteria) this;
        }

        public Criteria andDcmfileIsNull() {
            addCriterion("dcmFile is null");
            return (Criteria) this;
        }

        public Criteria andDcmfileIsNotNull() {
            addCriterion("dcmFile is not null");
            return (Criteria) this;
        }

        public Criteria andDcmfileEqualTo(String value) {
            addCriterion("dcmFile =", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileNotEqualTo(String value) {
            addCriterion("dcmFile <>", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileGreaterThan(String value) {
            addCriterion("dcmFile >", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileGreaterThanOrEqualTo(String value) {
            addCriterion("dcmFile >=", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileLessThan(String value) {
            addCriterion("dcmFile <", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileLessThanOrEqualTo(String value) {
            addCriterion("dcmFile <=", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileLike(String value) {
            addCriterion("dcmFile like", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileNotLike(String value) {
            addCriterion("dcmFile not like", value, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileIn(List<String> values) {
            addCriterion("dcmFile in", values, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileNotIn(List<String> values) {
            addCriterion("dcmFile not in", values, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileBetween(String value1, String value2) {
            addCriterion("dcmFile between", value1, value2, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmfileNotBetween(String value1, String value2) {
            addCriterion("dcmFile not between", value1, value2, "dcmfile");
            return (Criteria) this;
        }

        public Criteria andDcmstrIsNull() {
            addCriterion("dcmStr is null");
            return (Criteria) this;
        }

        public Criteria andDcmstrIsNotNull() {
            addCriterion("dcmStr is not null");
            return (Criteria) this;
        }

        public Criteria andDcmstrEqualTo(String value) {
            addCriterion("dcmStr =", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrNotEqualTo(String value) {
            addCriterion("dcmStr <>", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrGreaterThan(String value) {
            addCriterion("dcmStr >", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrGreaterThanOrEqualTo(String value) {
            addCriterion("dcmStr >=", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrLessThan(String value) {
            addCriterion("dcmStr <", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrLessThanOrEqualTo(String value) {
            addCriterion("dcmStr <=", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrLike(String value) {
            addCriterion("dcmStr like", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrNotLike(String value) {
            addCriterion("dcmStr not like", value, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrIn(List<String> values) {
            addCriterion("dcmStr in", values, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrNotIn(List<String> values) {
            addCriterion("dcmStr not in", values, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrBetween(String value1, String value2) {
            addCriterion("dcmStr between", value1, value2, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andDcmstrNotBetween(String value1, String value2) {
            addCriterion("dcmStr not between", value1, value2, "dcmstr");
            return (Criteria) this;
        }

        public Criteria andImadescIsNull() {
            addCriterion("ImaDesc is null");
            return (Criteria) this;
        }

        public Criteria andImadescIsNotNull() {
            addCriterion("ImaDesc is not null");
            return (Criteria) this;
        }

        public Criteria andImadescEqualTo(String value) {
            addCriterion("ImaDesc =", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescNotEqualTo(String value) {
            addCriterion("ImaDesc <>", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescGreaterThan(String value) {
            addCriterion("ImaDesc >", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescGreaterThanOrEqualTo(String value) {
            addCriterion("ImaDesc >=", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescLessThan(String value) {
            addCriterion("ImaDesc <", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescLessThanOrEqualTo(String value) {
            addCriterion("ImaDesc <=", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescLike(String value) {
            addCriterion("ImaDesc like", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescNotLike(String value) {
            addCriterion("ImaDesc not like", value, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescIn(List<String> values) {
            addCriterion("ImaDesc in", values, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescNotIn(List<String> values) {
            addCriterion("ImaDesc not in", values, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescBetween(String value1, String value2) {
            addCriterion("ImaDesc between", value1, value2, "imadesc");
            return (Criteria) this;
        }

        public Criteria andImadescNotBetween(String value1, String value2) {
            addCriterion("ImaDesc not between", value1, value2, "imadesc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}